package com.chengyu.core.service.goods;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chengyu.core.model.GoodsBrand;
import com.chengyu.core.request.BrandCategorySearchRequest;
import com.chengyu.core.request.GoodsBrandRequest;
import com.chengyu.core.request.PageParamRequest;
import com.chengyu.core.response.GoodsBrandListResponse;
import com.chengyu.core.response.GoodsBrandResponse;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
*  GoodsBrandService 接口
*  +----------------------------------------------------------------------
*  | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
*  +----------------------------------------------------------------------
*  | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
*  +----------------------------------------------------------------------
*  | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
*  +----------------------------------------------------------------------
*  | Author: CRMEB Team <admin@crmeb.com>
*  +----------------------------------------------------------------------
*/
public interface GoodsBrandService extends IService<GoodsBrand> {

    /**
     * 品牌分页列表
     * @param pageParamRequest 分页参数
     * @return PageInfo
     */
    PageInfo<GoodsBrandListResponse> getAdminPage(PageParamRequest pageParamRequest);

    /**
     * 添加品牌
     * @param request 添加参数
     * @return Boolean
     */
    Boolean add(GoodsBrandRequest request);

    /**
     * 删除品牌
     * @param id 品牌ID
     * @return Boolean
     */
    Boolean delete(Integer id);

    /**
     * 编辑品牌
     * @param request 修改参数
     * @return Boolean
     */
    Boolean edit(GoodsBrandRequest request);

    /**
     * 修改品牌显示状态
     * @param id 品牌ID
     * @return Boolean
     */
    Boolean updateShowStatus(Integer id);

    /**
     * 品牌缓存列表(全部)
     * @return List
     */
    List<GoodsBrandResponse> getCacheAllList();

    GoodsBrandResponse getDetail(Integer id,Boolean cache);

    /**
     * 通过分类查询品牌分页列表
     * @param request 查询参数
     * @param pageParamRequest 分页参数
     * @return PageInfo
     */
    PageInfo<GoodsBrandResponse> getPageListByCategory(BrandCategorySearchRequest request, PageParamRequest pageParamRequest);
}
